import '../../../utils/tools/localstorage_tool.dart';

/// 读取缓存中主题信息
Future<bool> readTheme() async {
  bool b;
  // 读取主题并赋值isLight
  String lsThemeType = await LocalStorage.getStringItem("themeContext");

  await (b = lsThemeType == "ThemeType.dark" ? false : true);

  return b;
}